package com.jivam.lottery.model;

import java.io.Serializable;

import com.jivam.lottery.util.ExpressionUtil;
/**
 * 公式表达式,公式的左边项目
 * @author Jivam
 */
public class Expression implements Serializable{
	
	private static final long serialVersionUID = -6437543092715882432L;
	private String expression;//公式展示
	private String postfixexp;//前缀表达式
	
	public Expression(String expression) {
		super();
		this.expression = expression;
		this.postfixexp = ExpressionUtil.getPostfixExp(expression);
	}
	
	public String getExpression() {
		return expression;
	}
	public void setExpression(String expression) {
		this.expression = expression;
	}
	public String getPostfixexp() {
		return postfixexp;
	}
	public void setPostfixexp(String postfixexp) {
		this.postfixexp = postfixexp;
	}
	

}
